var SysConfig = {
	serverPath:"http://localhost:8080/zqwzd/"
};
var JB = {};
JB.getBp = function() {
	var bases = document.getElementsByTagName('BASE');
	return bases.length == 0 ? '' : bases[0].href;
}
JB.calUrl = function(url) {
	var bp = this.getBp();
	if (!bp) return url;
	var lu = url.toLowerCase();
	if (lu.indexOf('http://') == 0 || lu.indexOf('https://') == 0 || lu.indexOf('ftp://') == 0) return url;

	return bp + url;
}